<template>
  <div >
    <News-Container :NewsContainer="NewsContainer"></News-Container>
    <ComFooter/>

  </div>
</template>

<script>
import axios from 'axios';
import NewsContainer from '../../pages/News/component/NewsContainer'
import ComFooter from '@/common/ComFooter'
export default {
    name:"information",
    components:{
        NewsContainer,
        ComFooter
    },
    data(){
        return{
            NewsContainer: []
        }
    },
    created(){
        var _this=this;
        axios.get('https://'+window.location.host+"/static/ceshi.json").catch(function(res) {
           _this.NewsContainer=res.data.data.news
        })

    },
    methods: {
         open:function(id){
            this.$router.push({path:"newsDetail",query:{id:id}})
        },
    }


}
</script>


<style lang="stylus" scoped>
</style>
